Versions:
oxide-sloc is a code metrics workbench published by Nima Shafie that specializes in SLOC (Source Lines of Code) analysis and unit test detection across 41 programming languages. Developed in Rust, the tool falls within the software development category, serving developers, project managers, and quality assurance teams who need to measure code size, monitor project composition, and evaluate testing coverage. The current release is version 1.6.20, one of nine published versions, indicating an actively maintained product line. The workbench offers multiple interfaces to suit different workflows: a command-line interface for automation and scripting, a localhost web UI for interactive exploration, rich HTML reports for detailed presentation, and PDF export for sharing and documentation purposes. Key features include a language breakdown that shows how code is distributed across the supported languages, adherence to the IEEE 1045-1992 counting standard for consistent and standardized measurement, and git webhook integration that enables automated analysis as part of a continuous integration pipeline. The tool also separates test code from production code, allowing teams to assess the ratio of testing effort to implementation and to track unit test metrics independently from the main codebase. Typical use cases include auditing the size and structure of a codebase, generating standardized line-count reports for compliance or estimation purposes, monitoring testing practices over time, and integrating metrics collection into development workflows through its CLI and webhook capabilities. By combining SLOC counting with unit test detection in a single workbench, oxide-sloc addresses both code volume measurement and test coverage assessment, making it suitable for organizations that follow recognized counting standards such as IEEE 1045-1992 and require reproducible, report-ready metrics in HTML or PDF form.
Tags: